import { createApp } from '../../../js/vue';

createApp({
  data() {
    return {
      msg: '',
      todoList: [
        { id: 1, name: '敲代码' },
        { id: 2, name: '整理笔记' },
      ],
      doneList: [{ id: 3, name: '脑袋放空，进入提前放假模式' }],
    };
  },
  methods: {
    add() {
      this.todoList.push({ id: Date.now(), name: this.msg });
      this.msg = '';
    },
  },
}).mount('#app');
